<?php
	class quyendb
	{		
		public function LayDanhSach($MaQuyen = 0, $TenQuyen = "")
		{
			$sql = "SELECT * 
					FROM quyen 
					WHERE 1";
			
			if($MaQuyen > 0)
				$sql .= " AND MaQuyen = $MaQuyen";
				
			if($TenQuyen != "")
				$sql .= " AND TenQuyen = '$TenQuyen'";
			
			$data = new dataservice();
			return $data->ExecuteQuery($sql);
		}
	}
?>